<%@ page import="sige.Aluno" %>
<!doctype html>
<html>
  <head>
    <meta name="layout" content="main">
  <g:set var="entityName" value="${message(code: 'aluno.label', default: 'Aluno')}" />
  <title><g:message code="default.create.label" args="[entityName]" /></title>
</head>
<body>
<center><h1><g:message code="default.create.label" args="[entityName]" /></h1></center>
<ul class="breadcrumb">
  <li>
    <a href="${createLink(uri: '/')}">
      <i class="icon-home"></i>
      <g:message code="default.home.label"/>
    </a>
    <span class="divider"><g:message code="span.divider" /></span>
  </li>
  <li>
  <g:link action="list">
    <i class="icon-list"></i>
    <g:message code="default.list.label" args="[entityName]" />
  </g:link>
</li>
</ul>
<div id="create-aluno" class="container-fluid" role="main">
  <g:if test="${flash.message}">
    <div class="alert alert-info">${flash.message}</div>
  </g:if>
  <g:hasErrors bean="${alunoInstance?.alunosTransferidos}">
    <ul class="alert alert-error">
      <g:eachError bean="${alunoInstance?.alunosTransferidos}" var="error">
        <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
      </g:eachError>
    </ul>
  </g:hasErrors>
  <div class="span3">
    <ul class="nav nav-tabs nav-stacked span4">
      <li><g:link action="create" id="${alunoInstance?.id}">Dados do Aluno</g:link></li>
      <li><g:link action="create_1" id="${alunoInstance?.id}">Dados do Registro</g:link></li>
      <li><g:link action="create_2" id="${alunoInstance?.id}">Dados Familiares</g:link></li>
      <li><g:link action="create_3" id="${alunoInstance?.id}">Hitórico de Saúde</g:link></li>
      <li class="active"><a href="#">Alunos Transferidos</a></li>
      <li><a href="#">Dados de Matrícula</a></li>
    </ul>
  </div>
  <g:form action="save4" >
    <div class="span8">
      <fieldset class="form-horizontal well">
        <g:render template="form_4"/>
        <g:hiddenField name="id"  value="${alunoInstance?.id}"  />
      </fieldset>
      <fieldset class="form-actions">
        <g:submitButton name="create" class="btn btn-success pull-right" value="${message(code: 'default.paginate.next', default: 'Próximo')}" />
      </fieldset>
    </div>
  </g:form>
</div>
</body>
</html>
